//
//  NWMissionComRequest.m
//  KuWoCan
//
//  Created by hwd on 17/3/28.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "NWMissionComRequest.h"

@implementation NWMissionComRequest

//根据用户Id获取目标计划
- (void)startRequestGetMissionPlanWithUserId:(NSString *)userId
{
    _showError = YES;
    _showLoading = YES;
    _path = NWMissionComGetPlan_Path;
    NSMutableDictionary *dic = [[NSMutableDictionary alloc]initWithDictionary:@{@"userId":userId}];
    _params = dic;
    [self startPost];
}

//根据userId查询用户所有的订单

- (void)startRequestGetAllOrderWithUserId:(NSString *)userId
{
    _showError = YES;
    _showLoading = YES;
    _path = NWMissionComGetAllOrder_Path;
    NSMutableDictionary *dic = [[NSMutableDictionary alloc]initWithDictionary:@{@"user.id":userId}];
    _params = dic;
    [self startPost];
}




@end
